package com.yonyou.iuap.shell.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;

import org.springframework.util.StringUtils;


public class MathUtil3 {

	public static  String  math3(){
		int i=(int)(Math.random()*900)+100; 
		return String.valueOf(i);
	}
	
	public static String uuid32(){
		   UUID uuid = UUID.randomUUID();
		   String uid=uuid.toString();
		   return uid;
	}
	
	public static String utilTime(String tiem){
	    SimpleDateFormat df = new SimpleDateFormat("MM-dd");  
	    try {  
	    	if(StringUtils.isEmpty(tiem)){
	    		Date date = df.parse(tiem);  
	 	        String dateTime=df.format(date);  
	 	        return dateTime;
	    	}
	       
	    } catch (Exception ex) {  
	        System.out.println(ex.getMessage());  
	    }  
	    return null;
	}
	
}
